import request from '@/utils/request'

// 查询控制点分组列表
export function listLoopGroup(query) {
  return request({
    url: '/app-api/business/loopGroup/list',
    method: 'get',
    params: query
  })
}

export function listSelect() {
  return request({
    url: '/app-api/business/loopGroup/select/list',
    method: 'get'
  })
}

// 查询控制点分组详细
export function getLoopGroup(id) {
  return request({
    url: '/app-api/business/loopGroup/' + id,
    method: 'get'
  })
}

// 新增控制点分组
export function addLoopGroup(data) {
  return request({
    url: '/app-api/business/loopGroup',
    method: 'post',
    data: data
  })
}

// 修改控制点分组
export function updateLoopGroup(data) {
  return request({
    url: '/app-api/business/loopGroup',
    method: 'put',
    data: data
  })
}

// 删除控制点分组
export function delLoopGroup(id) {
  return request({
    url: '/app-api/business/loopGroup/' + id,
    method: 'delete'
  })
}
